Vue.filter("setDate", function(value) {
  Date.prototype.toLocaleString = function() {
    return this.getFullYear() + "年" + ((this.getMonth() >= 1 && this.getMonth() <= 9) ? "0" + this.getMonth():this.getMonth()) + "月" + ((this.getDate() >= 1 && this.getDate() <= 9) ? "0" + this.getDate():this.getDate()) + "日 ";
  };
  var unixTimestamp = new Date(value) ;
  return unixTimestamp.toLocaleString();
});
Vue.filter("filterGetDate", function(value) {
  Date.prototype.toLocaleString = function() {
    return this.getFullYear() + "-" + ((this.getMonth()+1 >= 1 && this.getMonth()+1 <= 9) ? "0" + (this.getMonth()+1):this.getMonth()+1)
  };
  if(value == null || value == ''){
    return '';
  }
  var unixTimestamp = new Date(value) ;
  return unixTimestamp.toLocaleString();
});
Vue.filter("filterSetMenuType", function(value) {
    switch(value)
    {
        case 'master':
            return '父节点';
            break;
        case 'view':
            return '网页类型';
            break;
        case 'click':
            return '点击类型';
            break;
        case 'media':
            return '素材类型';
            break;
        default:
            return '无';
            break;
    }
});